package com.ruoyi.project.remake.mapper;

import java.util.List;
import com.ruoyi.project.remake.domain.TBorrowApproval;
import com.ruoyi.project.remake.domain.dto.BorrowApprovalDto;
import com.ruoyi.project.remake.domain.query.BorrowApprovalQuery;

/**
 * 借阅审批Mapper接口
 * 
 * @author 孙山伟
 * @date 2020-12-23
 */
public interface TBorrowApprovalMapper 
{
    /**
     * 查询借阅审批
     * 
     * @param id 借阅审批ID
     * @return 借阅审批
     */
    public TBorrowApproval selectTBorrowApprovalById(Long id);

    /**
     * 查询借阅审批列表
     * 
     * @param tBorrowApproval 借阅审批
     * @return 借阅审批集合
     */
    public List<TBorrowApproval> selectTBorrowApprovalList(TBorrowApproval tBorrowApproval);

    /**
     * 新增借阅审批
     * 
     * @param tBorrowApproval 借阅审批
     * @return 结果
     */
    public int insertTBorrowApproval(TBorrowApproval tBorrowApproval);

    /**
     * 修改借阅审批
     * 
     * @param tBorrowApproval 借阅审批
     * @return 结果
     */
    public int updateTBorrowApproval(TBorrowApproval tBorrowApproval);

    /**
     * 删除借阅审批
     * 
     * @param id 借阅审批ID
     * @return 结果
     */
    public int deleteTBorrowApprovalById(Long id);

    /**
     * 批量删除借阅审批
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteTBorrowApprovalByIds(Long[] ids);

    public List<TBorrowApproval> selectFrontApprovalList(BorrowApprovalDto tBorrowApproval);

    List<TBorrowApproval> selectAllFrontApprovalList(BorrowApprovalQuery borrowApprovalQuery);

}
